$(function(){
	resetLayoutSize();
});

function resetLayoutSize(){
	var navigationWidth =  $('#navigation').width();
	navigationWidth += parseInt($('#navigation').css('paddingRight')) + parseInt($('#navigation').css('paddingLeft')) + parseInt($('#navigation').css('marginLeft')) +parseInt($('#navigation').css('marginRight'));
	var screenWidth = window.innerWidth;
	var bodyWidthContent = screenWidth -  navigationWidth;
	$('#body_contents').width(bodyWidthContent);
	$('#body_contents').css({'marginLeft':navigationWidth+'px'});;
	
}